import 'package:jyofservice/bean/fee_list_entity.dart';

feeListEntityFromJson(FeeListEntity data, Map<String, dynamic> json) {
	if (json['pay_info_id'] != null) {
		data.payInfoId = json['pay_info_id'] is String
				? double.tryParse(json['pay_info_id'])
				: json['pay_info_id'].toDouble();
	}
	if (json['client_code'] != null) {
		data.clientCode = json['client_code'].toString();
	}
	if (json['fee_year'] != null) {
		data.feeYear = json['fee_year'] is String
				? int.tryParse(json['fee_year'])
				: json['fee_year'].toInt();
	}
	if (json['sfman'] != null) {
		data.sfman = json['sfman'].toString();
	}
	if (json['sfDt'] != null) {
		data.sfDt = json['sfDt'].toString();
	}
	if (json['jffs'] != null) {
		data.jffs = json['jffs'].toString();
	}
	if (json['pjlb'] != null) {
		data.pjlb = json['pjlb'].toString();
	}
	if (json['kplx'] != null) {
		data.kplx = json['kplx'];
	}
	if (json['sflx'] != null) {
		data.sflx = json['sflx'].toString();
	}
	if (json['ys'] != null) {
		data.ys = json['ys'] is String
				? double.tryParse(json['ys'])
				: json['ys'].toDouble();
	}
	if (json['ss'] != null) {
		data.ss = json['ss'] is String
				? double.tryParse(json['ss'])
				: json['ss'].toDouble();
	}
	if (json['lsh'] != null) {
		data.lsh = json['lsh'].toString();
	}
	if (json['jzrq'] != null) {
		data.jzrq = json['jzrq'].toString();
	}
	if (json['pay_time'] != null) {
		data.payTime = json['pay_time'].toString();
	}
	if (json['sfqd'] != null) {
		data.sfqd = json['sfqd'].toString();
	}
	if (json['bz'] != null) {
		data.bz = json['bz'].toString();
	}
	if (json['dycs'] != null) {
		data.dycs = json['dycs'] is String
				? double.tryParse(json['dycs'])
				: json['dycs'].toDouble();
	}
	if (json['jfr'] != null) {
		data.jfr = json['jfr'].toString();
	}
	if (json['jfsfz'] != null) {
		data.jfsfz = json['jfsfz'].toString();
	}
	if (json['openid'] != null) {
		data.openid = json['openid'];
	}
	return data;
}

Map<String, dynamic> feeListEntityToJson(FeeListEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['pay_info_id'] = entity.payInfoId;
	data['client_code'] = entity.clientCode;
	data['fee_year'] = entity.feeYear;
	data['sfman'] = entity.sfman;
	data['sfDt'] = entity.sfDt;
	data['jffs'] = entity.jffs;
	data['pjlb'] = entity.pjlb;
	data['kplx'] = entity.kplx;
	data['sflx'] = entity.sflx;
	data['ys'] = entity.ys;
	data['ss'] = entity.ss;
	data['lsh'] = entity.lsh;
	data['jzrq'] = entity.jzrq;
	data['pay_time'] = entity.payTime;
	data['sfqd'] = entity.sfqd;
	data['bz'] = entity.bz;
	data['dycs'] = entity.dycs;
	data['jfr'] = entity.jfr;
	data['jfsfz'] = entity.jfsfz;
	data['openid'] = entity.openid;
	return data;
}